package priv.yiyuan.example.design.payment;

import java.math.BigDecimal;

/**
 * 微信支付平台实现
 *
 * @author YiYuan
 * @data 2025/8/14
 * @apoNote
 */
public class WechatPlatform implements PaymentPlatform {

    @Override
    public String getPlatformName() {
        return "微信支付";
    }

    @Override
    public boolean verify(String paymentId) {
        System.out.println("微信支付验证支付ID: " + paymentId);
        return paymentId != null && paymentId.startsWith("wx");
    }

    @Override
    public void processPayment(BigDecimal amount) {
        System.out.println("微信支付处理金额: " + amount);
    }
}
